/* 常用初始化样式 */

body,
ul,
ol,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
table,
td,
img,
div {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    margin: 0 auto;
    width: 100%;
    min-width: 240px;
    max-width: 540px;
    background: #fdfffc;
    font: normal 14px/1.5 Tahoma, "  Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    color: #000;
}


/*点击高亮我们需要清除清除  设置为transparent 完成透明*/


/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/

input {
    -webkit-appearance: none;
}


/*禁用长按页面时的弹出菜单*/

img,
a {
    -webkit-touch-callout: none;
}

a {
    color: #222;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    vertical-align: middle;
}

div {
    /* css3 盒子模型 */
    box-sizing: border-box;
}

.clearfix:after {
    content: "";
    display: block;
    line-height: 0;
    visibility: hidden;
    height: 0;
    clear: both;
}

.top {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 27px;
    background-color: #fff;
    color: #666;
    box-shadow: 0px 1px rgba(0, 0, 0, 0.1);
}

.top span {
    text-align: center;
    width: 25%;
}

.top span:nth-child(1) {
    color: #bd1828;
}

.top span:nth-child(n+2) {
    border-left: 1px solid #666;
}

.main .goods {
    display: flex;
    flex-direction: column;
}

h5 {
    margin: 3px;
    font-size: 12px;
    font-weight: 400;
}

.main .goods div {
    display: flex;
    height: 210px;
}

.main .goods div .good {
    position: relative;
    flex: 1;
    background-color: #f1f1f1;
    margin: 5px 5px 0px 5px;
    overflow: hidden;
    border-radius: 8px;
}

.main .goods div .good:first-child {
    margin-right: 0;
}

.main .goods div .good img {
    border-radius: 8px;
    width: 100%;
    height: 135px;
}

.minprice {
    position: absolute;
    bottom: 20px;
    left: 2px;
    font-size: 10px;
    color: silver;
    text-decoration: line-through;
    font-weight: 300;
}

.productprice {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 14px;
    font-weight: 300;
    color: #bd1828;
}